<% content_for :breadcrumb_context_menu do %>
  <div class="process-title-content-breadcrumb-container-right">
    <% if allowed_to? :create, :process_group %>
      <%= link_to [:new, :participatory_process_group], class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link" do %>
        <%= icon "add-line" %>
        <span>
          <%= t("actions.new_process_group", scope: "decidim.admin") %>
        </span>
      <% end %>
    <% end %>
    <div class="inline-block relative">
      <%= button_tag id: "processes-menu-trigger", data: { controller: "dropdown", target: "processes-dropdown-menu-settings" }, class: "dropdown__trigger button button__transparent" do %>
        <span>
          <%= t("menu.manage", scope: "decidim.admin") %>
        </span>
        <%= icon "arrow-down-s-line" %>
      <% end %>
      <div id="processes-dropdown-menu-settings" class="process-title-content-dropdown">
        <%= dropdown_menu(:admin_participatory_process_group_menu).render %>
      </div>
    </div>
  </div>
<% end %>

<%= render "layouts/decidim/admin/application" do %>
  <%= yield %>
<% end %>
